import Vue from 'vue'
import VueRouter from 'vue-router'
import AboutView from '../views/AboutView'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'about',
    component: AboutView
  },
  {
    path: '/home',
    name: 'home',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/HomeView.vue')
  },
 
  {
    path: '/table',
    name: 'table',
    component: () => import('../views/table.vue')
  },
  {
    path: '/shop',
    name: 'shop',
    component: () => import('../views/shop.vue')
  },
  {
    path: '/coupon',
    name: 'coupon',
    component: () => import('../views/coupon.vue')
  },
  {
    path: '/order',
    name: 'order',
    component: () => import('../views/order.vue')
  },

]

const router = new VueRouter({
  routes
})

export default router
